package com.example.vw.tabletest.util;

public class Constant {

    /**
     * 表单控件在pager中的顺序
     */
    public final static String INDEX_TABEL = "INDEX_TABEL";
    public final static String KEY_FCODE = "F_CODE";
    public final static String KEY_URL ="URL";
    public final static String KEY_ID = "ID";
    public final static String KEY_PID = "PID";
    public final static String KEY_TEXT = "TEXT";


    /**
     * 调用服务接口的名称，一般不用改
     */
    public final static String OPERATION_LOADDATA="LoadData";
    /**
     * 方法编号预设值，一般不用改
     */
    public final static int FUNCTIONID_LOADDATA=999;


    /**
     * 表单数据加载url的模板
     * 参数依次为：
     * table：表单编码
     * catalog：分类目录编码
     * year：调查年份
     * period：调查期编码
     * userID：登陆用户的id
     * operation：调用服务接口的名称
     * functionID：方法编号
     * userName：用户名
     */
    public final static String URL_TABLE_FORMAT = "http://211.103.218.91:8095/appdemo.html?table=%s" +
            "&catalogID=%s" +
            "&year=%d" +
            "&period=%d" +
            "&userID=%s" +
            "&operation=%s" +
            "&functionID=%d" +
            "&userName=%s";

}
